package com.newlink.building.userinfo.mvp.model

import com.newlink.building.common_base.base.BaseModel
import com.newlink.building.common_base.http.Base_RetrofitHelper
import com.newlink.building.common_base.model.bean.FamilyListData
import com.newlink.building.common_base.model.bean.HttpResult
import com.newlink.building.userinfo.mvp.contract.Module_UserInfo_FamilyManagementContract
import io.reactivex.Observable

/**
 * @author wangyang
 * @date 2022/9/16
 * @description 我的——家庭管理页面的Model
 */
class Module_UserInfo_FamilyManagementModel : BaseModel(), Module_UserInfo_FamilyManagementContract.Model {

    override fun getFamilyManagementList(
        token: String,
        page: Int,
        limit: Int
    ): Observable<HttpResult<FamilyListData>> {
        return Base_RetrofitHelper.service.getFamilyManagementList(token, page, limit)
    }

    override fun getFamilyMaxMemberCount(
        token: String,
        masterUserId: Long,
        prjType: Int
    ): Observable<HttpResult<Int>> {
        return Base_RetrofitHelper.service.getFamilyMaxMemberCount(token, masterUserId, prjType)
    }


}